-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add vagrant support for ircb #94
base: api_fixes
Are you sure you want to change the base?
Conversation
This commits add vagrant support for ircb, this is used to make development of ircb easy Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
This commit adds Vagrantfile and ansible to add provision to Vagrant image Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
139cd3f
to
315abee
Compare
Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
Vagrantfile
Outdated
ansible.playbook = "ansible/vagrant-playbook.yml" | ||
end | ||
config.vm.provision "shell", inline: "cd /home/vagrant/devel && sudo python3 setup.py develop" | ||
config.vm.provision "shell", inline: "sudo systemctl start redis.service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can migrate this to role?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for redis I have a handler written
Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
Signed-off-by: Farhaan Bukhsh(fhackdroid) <[email protected]>
RUN dnf install -y python2-devel python-setuptools python-nose py-bcrypt python-alembic \ | ||
python-pip python3-devel openssl-devel redis python3-pip | ||
|
||
RUN pip3.4 install Flask==0.10.1 Flask-SQLAlchemy==2.0 Flask-User==0.6.11 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not install from requirements.txt
?
|
||
EXPOSE 9000 10000 6379 | ||
|
||
CMD ["redis-service"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why start redis-service
? Won't it be better to have ircb
as entrypoint and ["run", "allinone"]
as default command? This will open up possible usecases like:
docker run ircb run stores
docker run ircb run bouncer
and so on ...
This commits add vagrant support for ircb, this is used to make
development of ircb easy
Signed-off-by: Farhaan Bukhsh(fhackdroid) [email protected]